package cn.devzyh.oms.wsms.api.constant;

/**
 * 库存相关常量
 *
 * @author devzyh
 * @date 2023-09-22
 */
public class StockConstants {

	/**
	 * 库存操作方向
	 */
	public static class Direction {
		public static final String IN = "I"; // 入
		public static final String OUT = "O"; // 出
	}

	/**
	 * 默认渠道
	 */
	public static String DEFAULT_CHANNEL = "DEFAULT";

	/**
	 * 库存位置
	 */
	public static class Location {
		public static final String AVAILABLE = "AVAILABLE"; // 可售
		public static final String RETURN = "RETURN"; // 退货
		public static final String DEFECTIVE = "DEFECTIVE"; // 残次
		public static final String DIFFERENCE = "DIFFERENCE"; // 差异
	}

	/**
	 * 库存操作
	 */
	public static class Operation {
		public static final String ADJUST = "ADJUST"; // 调整
		public static final String BATCH_ADJUST = "BATCH_ADJUST"; // 批量调整
		public static final String IN_TRANSIT = "IN_TRANSIT"; // 在途
		public static final String INBOUND = "INBOUND"; // 入库
		public static final String ALLOCATE = "ALLOCATE"; // 分配
		public static final String OUTBOUND = "OUTBOUND"; // 出库
	}

	/**
	 * 完成状态
	 */
	public static class LogStatus {
		public static final int INIT = 1; // 初始
		public static final int FINISH = 9; // 完成
	}

}
